<!-- inc:global_head -->
<!-- inc:right.css -->
<!-- inc:right.head -->

<!-- NewsLetter列表页 -->
<div class="table2">
	&nbsp;<a href="admin.php?file=index">系统首页</a>
	&raquo; <a href="admin.php?file=newsletter&act=list">NewsLetter 邮箱列表</a>
</div>

<table width="100%" cellpadding="0" cellspacing="0">
<tr class="table table2">
	<td height="23px" class="msg_checkbox b_b">&nbsp;</td>
	<td class="msg_subject_id b_b" align="left" >ID</td>
	<td class="b_b">名称</td>
	<td class="b_b">邮箱</td>
	<td class="b_b">添加时间</td>
</tr>
<!-- $rslist AS $key=>$value -->
<tr class="m_out" onmouseover="this.className='m_over'" onmouseout="this.className='m_out'">
	<td height="25px" class="b_b"><input type="checkbox" name="qg_id[]" value="{:$value[id]}"></td>
	<td align="left" class="b_b">{:$value[id]}</td>
	<td class="b_b">
		<span style="cursor:pointer;" onclick="qg_modify({:$value[id]})">{:$value[name]}</span>
	</td>
	<td align="left" class="b_b">{:$value[email]}</td>
	<td align="left" class="b_b">{:$value[date]}</td>
</tr>
<!-- end -->
</table>

<div class="table listact">
<a href="#" onclick="select_all()">全选</a>
<a href="#" onclick="revCheck()">反选</a>
<a href="#" onclick="selectNone()">全不选</a> | 
<a href="#" onclick="qg_pl('delete')">批量删除</a>
</div>

<script type="text/javascript">
function qg_modify(id)
{
	qgurl("admin.php?file=newsletter&act=modify&id="+id);
}
function qg_pl(qgtype)
{
	var idarray = new Array();//定义一个数组
	var cv = document.getElementsByTagName("input");
	var m = 0;
	for(var i=0; i<cv.length; i++)
	{
		if(cv[i].type.toLowerCase() == "checkbox")
		{
			if(cv[i].checked)
			{
				idarray[m] = cv[i].value;
				m++;
			}
		}
	}
	var id = idarray.join(",");
	if(!id || id == "0")
	{
		alert("没有勾选要操作的主题！");
		return false;
	}
	var url;
	url = "admin.php?file=newsletter&act=plset&idlist=" + id + "&qgtype=" + qgtype + "&sysgroupid={:$sysgroupid}&cateid={:$cateid}";
	if(qgtype == "delete")
	{
		question = confirm("确认删除该信息吗？特别说明，删除后无法恢复！");
		if (question != "0")
		{
			qgurl(url);
		}
	}
	else
	{
		qgurl(url);
	}
}
</script>

<!-- inc:foot -->